Tell direction in prompts for '(previous|next)-matching-history-element'
authorJim Porter <jporterbugs@gmail.com>
Sat, 11 May 2024 18:41:11 +0000 (11:41 -0700)
committerJim Porter <jporterbugs@gmail.com>
Mon, 20 May 2024 01:32:25 +0000 (18:32 -0700)
commit44d1687f1f6bc3d261aa2344a714b1f3397b3039
tree49be56a2f3c426f2601a89dea72e22936787d27c
parentae9045a8bd8d3917feb570adfab0b929b120a8e5
Tell direction in prompts for '(previous|next)-matching-history-element'

Previously, this always said "Previous" for
'previous-matching-history-element' (likewise "Next").  Now, the prompt
accounts for a negative prefix argument changing the search direction
(bug#70882).

* lisp/simple.el (previous-matching-history-element)
(next-matching-history-element): Consult numeric prefix argument to
determine the prompt string.
lisp/simple.el